//
//  HeadNeedTableViewCell.m
//  hello
//
//  Created by 查传申 on 15/12/10.
//  Copyright © 2015年 查传申. All rights reserved.
//

#import "HeadNeedTableViewCell.h"

@implementation HeadNeedTableViewCell
-(id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier  {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.label_title = [[UILabel alloc]initWithFrame:CGRectZero];
        _label_title.backgroundColor = [UIColor redColor];
        
        self.label_descrip = [[UILabel alloc]initWithFrame:CGRectZero];
        _label_descrip.backgroundColor = [UIColor greenColor];
        [self.contentView addSubview:_label_title];
        [self.contentView addSubview:_label_descrip];
    }
    return self;
    
}
-(void)layoutSubviews{
    [super layoutSubviews];
    _label_title.frame = CGRectMake(0, 0, self.contentView.frame.size.width, self.contentView.frame.size.height/2);
    _label_descrip.frame = CGRectMake(0, self.contentView.frame.size.height/2, self.contentView.frame.size.width, _label_title.frame.size.height);
    
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
